package com.eigaland.change_machine.business.home

import android.util.Log
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.eigaland.change_machine.R
import com.eigaland.change_machine.business.login.LoginFragment

import com.eigaland.change_machine.business.splash.SplashFragment
import com.eigaland.change_machine.databinding.ActivityHomeBinding
import com.eigland.eigaland_lib.base.BaseAct
import kotlinx.android.synthetic.main.fragment_login.*
import me.yokeyword.fragmentation.ExtraTransaction
import me.yokeyword.fragmentation.ISupportActivity
import me.yokeyword.fragmentation.SupportActivityDelegate
import me.yokeyword.fragmentation.SupportHelper.findFragment
import me.yokeyword.fragmentation.anim.DefaultHorizontalAnimator
import me.yokeyword.fragmentation.anim.DefaultVerticalAnimator
import me.yokeyword.fragmentation.anim.FragmentAnimator
import movie6.posprintercept2.extensions.textWatcher




public class HomeAct: BaseAct<HomeActVM,ActivityHomeBinding>(){



    override fun initView() {
        val fragment = findFragment(supportFragmentManager,SplashFragment::class.java)
        if (fragment == null) {
            supportDelegate.loadRootFragment(R.id.fragment_container,SplashFragment()   )
        }
    }


    override fun onCreateFragmentAnimator(): FragmentAnimator {
       // return FragmentAnimator(R.anim.fragment_enter_animation,0,R.anim.fragment_close_enter,0)

        return DefaultHorizontalAnimator()
    }

    override fun initVM() {
       setContentView(R.layout.activity_home)


    }


}